import Vue from 'vue'
import App from './App'
import ajax from "./common/http/http.js"
import time5 from "./common/date/date.js"
import jwt from './common/jwt/jwt'
import jwtt from './common/jwt/jwtt'

// Vue i18n 国际化
import VueI18n from 'vue-i18n';
Vue.use(VueI18n);

// i18n 部分的配置，引入语言包，注意路径
import lang_zh_CN from '@/common/locales/zh_CN.js';
import lang_en from '@/common/locales/en.js';

const i18n = new VueI18n({
	// 默认语言
	// locale: 'zh_CN',
	locale: 'en',
	// 引入语言文件
	messages: {
		'zh_CN': lang_zh_CN,
		'en': lang_en,
	}
});
// a.visible.top
// const http = 'https://africaapi.lastinglight.cn/api'
// const http = 'https://africaapi.tbrykj.com/api'//测试地址
const http = 'https://a.visible.top/api'
// const http = '/api'

Vue.prototype.$http = http
Vue.prototype.$imghttps = 'https://admin.visible.top'

Vue.prototype._i18n = i18n;

Vue.prototype.$ajax = ajax;

Vue.prototype.$time5 = time5;

Vue.prototype.$jwt = jwt;

Vue.prototype.$jwtt = jwtt;

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	http,
	i18n,
	ajax,
	time5,
	jwt,
	jwtt,
	...App
})
app.$mount()